<template>
    <div>
        用户名:<input type="text" v-model="form.username">
        <br>
        密码:<input type="text" v-model="form.password">
        <br>
        <button @click="login">登录</button>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                form:{}
            }
        },
        methods:{
            login(){
                this.$axios.post("text/author_login",this.form).then(res=>{
                    alert(res.data.mes)
                })
            }
        },
        mounted(){}
    }
</script>

<style scoped>

</style>